package com.acme.task5;

public class TextModifier {
	public static void main(String[] args) {
		if (args.length == 1) {
			modify(args[0]);
		} else {
			System.out.println("Something wrong");
		}
	}
	
	public static void modify (String str) {
		for (char charAtIndex : str.toCharArray()) {
			if ((charAtIndex < '0') || (charAtIndex > '9')) {
				if (charAtIndex == '+' || charAtIndex == '-') {
					System.out.print(charAtIndex + "" + charAtIndex);
				} else {
					System.out.print(charAtIndex);
				}
			}
		}
	}
}